package cn.icare.cms;

import cn.icare.cms.dao.po.Coupon;
import cn.icare.cms.dao.po.Unit;
import cn.icare.cms.model.ro.AddCouponRO;
import cn.icare.cms.model.ro.AddUnitRO;
import cn.icare.cms.model.ro.EditCouponRO;
import cn.icare.cms.model.ro.EditUnitRO;
import cn.icare.cms.model.vo.rest.MsgDatasVO;

import java.util.List;
import java.util.Map;

public interface CouponService {
    Integer createOne(AddCouponRO ro,String actionUserName);

    boolean updateOne(EditCouponRO ro,String actionUserName);

    boolean deleteOne(Integer id);

    boolean deleteBatch(List<Integer> ids);

    Coupon getOne(Integer id);

    MsgDatasVO getList(String name,Integer type, Integer pageNum, Integer pageSize);

    boolean updateOneGetTotal(Integer id,Integer getTotal);

    boolean updateOneStatus(Integer id,Integer status);

    /**
     * 可领取的优惠券列表
     * @param pageNum
     * @param pageSize
     * @return
     */
    MsgDatasVO getCanUseList(Integer pageNum, Integer pageSize);



    /**
     * 新人券列表
     * @param
     * @param
     * @return
     */
    List<Map<String,Object>> getOnlyNewMemberList();



}
